﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace MG.Business
{
    // NOTE: If you change the class name "PublicService" here, you must also update the reference to "PublicService" in Web.config.
    public class PublicService : IPublicService
    {
        public IList<Company> GetAllCompanies()
        {
            using(var context = new MGConsultingEntities())
            {
                return context.Company.Include("Methodology").ToList();
            }
        }

        public IList<Methodology> GetAllMethodologyByCompanyId(int companyId)
        {
            throw new System.NotImplementedException();
        }

        public IList<Roadmap> GetAllRoadMapByMethodologyId(int methodology)
        {
            throw new System.NotImplementedException();
        }

        public IList<Template> GetAllTemplateByMethodologyId(int methodology)
        {
            throw new System.NotImplementedException();
        }
    }
}
